<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: syslog4cj.impl.message.modifier.AbstractSyslogMessageModifier Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacesyslog4cj.html">syslog4cj</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl.html">impl</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl_1_1message.html">message</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl_1_1message_1_1modifier.html">modifier</a></li><li class="navelem"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifier.html">AbstractSyslogMessageModifier</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifier-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">syslog4cj.impl.message.modifier.AbstractSyslogMessageModifier Class Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for syslog4cj.impl.message.modifier.AbstractSyslogMessageModifier:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifier.png" usemap="#syslog4cj.impl.message.modifier.AbstractSyslogMessageModifier_map" alt=""/>
  <map id="syslog4cj.impl.message.modifier.AbstractSyslogMessageModifier_map" name="syslog4cj.impl.message.modifier.AbstractSyslogMessageModifier_map">
<area href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF.html" alt="syslog4cj.common.SyslogMessageModifierIF" shape="rect" coords="201,0,594,24"/>
<area href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1hash_1_1HashSyslogMessageModifier.html" alt="syslog4cj.impl.message.modifier.hash.HashSyslogMessageModifier" shape="rect" coords="0,112,393,136"/>
<area href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1mac_1_1MacSyslogMessageModifier.html" alt="syslog4cj.impl.message.modifier.mac.MacSyslogMessageModifier" shape="rect" coords="403,112,796,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a87ccc9fd1c4dd21e0e474e10a228afdd"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifier.html#a87ccc9fd1c4dd21e0e474e10a228afdd">init</a> (<a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierConfigIF.html">SyslogMessageModifierConfigIF</a> messageModifierConfig)</td></tr>
<tr class="separator:a87ccc9fd1c4dd21e0e474e10a228afdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6157a58046be6df0826f6f172ace10a"><td class="memItemLeft" align="right" valign="top">public static func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifier.html#ab6157a58046be6df0826f6f172ace10a">parseModifier</a> (String message, String prefix, String suffix)</td></tr>
<tr class="separator:ab6157a58046be6df0826f6f172ace10a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae33a9b5d876e7825e6b7786a46fa7a2c"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifier.html#ae33a9b5d876e7825e6b7786a46fa7a2c">parseInlineModifier</a> (String message)</td></tr>
<tr class="separator:ae33a9b5d876e7825e6b7786a46fa7a2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f78854c2447ab958d907113a88c034a"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifier.html#a9f78854c2447ab958d907113a88c034a">verify</a> (String message):Bool</td></tr>
<tr class="separator:a9f78854c2447ab958d907113a88c034a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF.html">syslog4cj.common.SyslogMessageModifierIF</a></td></tr>
<tr class="memitem:a8f65d76f12bd3b028d7fefb6d1b9a111 inherit pub_methods_interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF.html#a8f65d76f12bd3b028d7fefb6d1b9a111">modify</a> (<a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogIF.html">SyslogIF</a> syslog, Int64 facility, Int64 level, String message):String</td></tr>
<tr class="separator:a8f65d76f12bd3b028d7fefb6d1b9a111 inherit pub_methods_interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a581a1f2aee3c0fbd34270775e1aab851 inherit pub_methods_interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF.html#a581a1f2aee3c0fbd34270775e1aab851">verify</a> (String message):Bool</td></tr>
<tr class="separator:a581a1f2aee3c0fbd34270775e1aab851 inherit pub_methods_interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a29538dbc79c30c0f36dda70cf618618a"><td class="memItemLeft" align="right" valign="top">protected func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifier.html#a29538dbc79c30c0f36dda70cf618618a">verify</a> (String message, String modifier):Bool</td></tr>
<tr class="separator:a29538dbc79c30c0f36dda70cf618618a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:aebd8c9339bfc42a7f2d1bb27d746e95b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1AbstractSyslogMessageModifier.html#aebd8c9339bfc42a7f2d1bb27d746e95b">var messageModifierConfig</a> : <a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierConfigIF.html">SyslogMessageModifierConfigIF</a></td></tr>
<tr class="separator:aebd8c9339bfc42a7f2d1bb27d746e95b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Syslog 消息修饰器的抽象基类 </p>
<p>提供修饰器配置管理和消息解析的通用实现， 具体修饰器应继承此类并实现核心修改逻辑。 </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a87ccc9fd1c4dd21e0e474e10a228afdd" name="a87ccc9fd1c4dd21e0e474e10a228afdd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87ccc9fd1c4dd21e0e474e10a228afdd">&#9670;&#160;</a></span>init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public syslog4cj.impl.message.modifier.AbstractSyslogMessageModifier.init </td>
          <td>(</td>
          <td class="paramname"><em>messageModifierConfig</em>:&#160;</td>
          <td class="paramtype">SyslogMessageModifierConfigIF</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>使用指定配置创建修饰器</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">messageModifierConfig</td><td>修饰器配置 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ae33a9b5d876e7825e6b7786a46fa7a2c" name="ae33a9b5d876e7825e6b7786a46fa7a2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae33a9b5d876e7825e6b7786a46fa7a2c">&#9670;&#160;</a></span>parseInlineModifier()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func syslog4cj.impl.message.modifier.AbstractSyslogMessageModifier.parseInlineModifier </td>
          <td>(</td>
          <td class="paramname"><em>message</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>使用当前配置解析消息中的修饰内容</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>已修饰的完整消息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>二元组数组：[原始消息, 修饰内容] </dd></dl>

</div>
</div>
<a id="ab6157a58046be6df0826f6f172ace10a" name="ab6157a58046be6df0826f6f172ace10a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6157a58046be6df0826f6f172ace10a">&#9670;&#160;</a></span>parseModifier()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public static func syslog4cj.impl.message.modifier.AbstractSyslogMessageModifier.parseModifier </td>
          <td>(</td>
          <td class="paramname"><em>message</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>prefix</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>suffix</em>:&#160;</td>
          <td class="paramtype">String&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>解析消息中的修饰内容<br  />
 从已修饰的消息中提取原始消息和修饰内容， 基于配置的前后缀定位修饰内容位置。</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>已修饰的完整消息 </td></tr>
    <tr><td class="paramname">prefix</td><td>修饰内容前缀 </td></tr>
    <tr><td class="paramname">suffix</td><td>修饰内容后缀 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>二元组数组：[原始消息, 修饰内容]（若解析失败返回空数组） </dd></dl>

</div>
</div>
<a id="a9f78854c2447ab958d907113a88c034a" name="a9f78854c2447ab958d907113a88c034a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f78854c2447ab958d907113a88c034a">&#9670;&#160;</a></span>verify() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func syslog4cj.impl.message.modifier.AbstractSyslogMessageModifier.verify </td>
          <td>(</td>
          <td class="paramname"><em>message</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td>: Bool </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>验证完整消息的修饰内容</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>已修饰的完整消息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>验证结果（true=修饰内容有效） </dd></dl>

<p>Implements <a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF.html#a581a1f2aee3c0fbd34270775e1aab851">syslog4cj.common.SyslogMessageModifierIF</a>.</p>

</div>
</div>
<a id="a29538dbc79c30c0f36dda70cf618618a" name="a29538dbc79c30c0f36dda70cf618618a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29538dbc79c30c0f36dda70cf618618a">&#9670;&#160;</a></span>verify() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">protected func syslog4cj.impl.message.modifier.AbstractSyslogMessageModifier.verify </td>
          <td>(</td>
          <td class="paramname"><em>message</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>modifier</em>:&#160;</td>
          <td class="paramtype">String&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>: Bool</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>验证消息修饰内容的抽象方法（需子类实现）</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>原始消息 </td></tr>
    <tr><td class="paramname">modifier</td><td>修饰内容 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>验证结果（true=有效） </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="aebd8c9339bfc42a7f2d1bb27d746e95b" name="aebd8c9339bfc42a7f2d1bb27d746e95b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebd8c9339bfc42a7f2d1bb27d746e95b">&#9670;&#160;</a></span>var messageModifierConfig</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">syslog4cj.impl.message.modifier.AbstractSyslogMessageModifier.var messageModifierConfig : <a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierConfigIF.html">SyslogMessageModifierConfigIF</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>修饰器配置实例 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/impl/message/modifier/<a class="el" href="abstract__syslog__message__modifier_8cj.html">abstract_syslog_message_modifier.cj</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6
</small></address>
</body>
</html>
